package com.hang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hang.entity.TenantDataSource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

// 租户数据源 Mapper
@Mapper
public interface TenantDataSourceMapper extends BaseMapper<TenantDataSource> {
    @Select("SELECT * FROM tenant_datasource WHERE tenant_code = #{tenantCode}")
    TenantDataSource selectByTenantCode(String tenantCode);
}
